package com.linxianqin.springbootVue.domain.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 角色信息表
 * </p>
 *
 * @author lxq
 * @since 2020-12-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="SysRole对象", description="角色信息表")
public class SysRole implements Serializable {

    private static final long serialVersionUID=1L;

      @ApiModelProperty(value = "角色ID")
      @TableId(value = "role_id", type = IdType.AUTO)
      private Long roleId;

      @ApiModelProperty(value = "角色名称")
      private String roleName;

      @ApiModelProperty(value = "角色权限字符串")
      private String roleKey;

      @ApiModelProperty(value = "显示顺序")
      private Integer roleSort;

      @ApiModelProperty(value = "数据范围（1：全部数据权限 2：自定数据权限 3：本部门数据权限 4：本部门及以下数据权限）")
      private String dataScope;

      @ApiModelProperty(value = "菜单树选择项是否关联显示")
      private Boolean menuCheckStrictly;

      @ApiModelProperty(value = "部门树选择项是否关联显示")
      private Boolean deptCheckStrictly;

      @ApiModelProperty(value = "角色状态（0正常 1停用）")
      private String status;

      @ApiModelProperty(value = "创建者")
      private String createBy;

      @ApiModelProperty(value = "创建时间")
      @TableField(fill = FieldFill.INSERT)
      private Date createTime;

      @ApiModelProperty(value = "更新者")
      private String updateBy;

      @ApiModelProperty(value = "更新时间")
      @TableField(fill = FieldFill.UPDATE)
      private Date updateTime;

      @ApiModelProperty(value = "备注")
      private String remark;


}
